<template>
<BasicModal v-bind="$attrs" @register="register" destroyOnClose :title="title" :width="896" :height="500" >
  <BasicTable @register="registerTable">

  </BasicTable>
</BasicModal>
</template>

<script lang="ts"  setup>
  import {BasicModal, useModal, useModalInner} from '/@/components/Modal';
  import {useListPage} from "/@/hooks/system/useListPage";
  import {listInHalfMonth} from '/@/views/assets/leaseContract/DbHtb.api';
  import {columns} from '/@/views/assets/leaseContract/DbHtb.data';
  import {FormSchema} from "/@/components/Form";
  import {BasicTable, useTable, TableAction,BasicColumn} from '/@/components/Table';


  const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
    tableProps:{
      title: '半个月内的新签订合同',
      api: listInHalfMonth,
      columns,
      canResize:true,
      formConfig: {
        showActionButtonGroup: false,
      }

    },

  })
  const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext

  const [register, {setModalProps, closeModal}] = useModalInner(async (data) => {
    setModalProps({confirmLoading: false,showCancelBtn:false,showOkBtn:false,});
  });

</script>
